﻿using System;
using System.Collections;
using System.Web;
using ASPNETVN.PORTAL.Components.UI;

namespace ASPNETVN.PORTAL.Modules.ANNOUNCEMENT.Controls
{
    public partial class Style2 : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Hashtable settings = this.Settings;
                iframe.Attributes.Add("height", settings["ContainerHeight"].ToString());
                iframe.Attributes.Add("width", settings["ContainerWidth"].ToString());
                iframe.Attributes.Add("src", Global.GetApplicationPath() + string.Format("/Modules/ASPNETVN.PORTAL.Modules.ANNOUNCEMENT/Pages/PageStyle2.aspx?mid={0}&top={1}&bgcolor={2}", this.ModuleID, this.Settings["TopRecords"], HttpUtility.UrlEncode(this.Settings["BackgroundColor"].ToString())));
            }
        }
    }
}